<div id="bankopenmain">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title" id="ntModalLabel">{:lang("add/alterar_bank_account")}</h4>
    </div>
    <div class="modal-body">
        <div class="row clearfix">
            <div class="col-md-12 column">
                <div class="alert alert-dismissable alert-info">
                    <button type="button" class="close">×</button>
                    <p></p>
                </div>
                <table class="table table-striped table-hover ntTable">
                    <tbody>
                    <tr>
                        <td>{:lang('bank')}<span class="required"></span></td>
                        <td>
                            <select class="form-control" v-model="banks_id">
                                <option value="">{:lang('please_select')}</option>
                                <option v-for="(item,index) in banklist" :value="item.id">{{item.name}}</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td>{:lang('account_opening_bank_branch')}<span class="required"></span></td>
                        <td><input type="text" class="form-control"  v-model="bankname"></td>
                    </tr>
                    <tr>
                        <td>{:lang('account_name')}<span class="required"></span></td>
                        <td>
                            <input type="text" class="form-control" v-model="account_name">
                        </td>
                    </tr>
                    <tr>
                        <td>{:lang('account')}<span class="required"></span></td>
                        <td colspan="3">
                            <div class="input-group" style="width:100%">
                                <input type="text" class="form-control" v-model="account_num">
                                <span class="input-group-addon">
                                                <input type="checkbox" v-model="is_main" value="1"> {:lang('main')}
                                            </span>
                            </div>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal"><span
                class="glyphicon glyphicon-remove"></span>{:lang('cancel')}
        </button>
        <button type="button" class="btn btn-primary" @click="savefun"
                style="padding-left:24px;padding-right:24px"><span
                class="glyphicon glyphicon-floppy-disk"></span>{:lang('save')}
        </button>
    </div>
    <input type="hidden" id="bank" name="bank" value="{$bank|default=''}">
    <input type="hidden" name="bankid" id="bankid" value="{$bankid|default=''}">
</div>
<script src="/static/Admin/js/bankinfo.js"></script>